package com.agp.com.agp.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author agp
 * @version 1.0.0
 * @ClassName DemoController.java
 * @Description TODO
 * @createTime 2018年11月01日 11:28:00
 */
@RestController
public class DemoController {

    @Value("${config}")
    String config;

    @GetMapping("/")
    public String demo() {
        return "返回的config参数值为:" + config;
    }
}